package com.kongjs.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kongjs.application.model.dto.*;
import com.kongjs.application.model.entity.Tenants;
import org.springframework.security.access.prepost.PreAuthorize;

import java.util.List;

public interface ITenantService extends IService<Tenants> {

    boolean save(SaveTenantDTO dto);


    boolean remove(Long id);


    boolean update(UpdateTenantDTO dto);


    QueryTenantDTO query(Long id);


    List<QueryTenantDTO> queryList();


    PageDTO<QueryTenantDTO> page(PageQueryDTO dto, QueryTenantParamDTO paramDTO);
}
